<?php

namespace Biz\Requests\App;

use Lumen\Validation\Validators\RequestValidator;

/**
 * StoreSiteRequest.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class StoreSiteRequest extends RequestValidator
{
    /**
     * Get custom rules for validator errors.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'name'               => 'required|min:1|max:32',
            'domain'             => 'required|url|max:255',
            'languages'          => 'required|array|distinct|min:1',
            'description'        => 'max:255',
        ];
    }
}
